package main

import (
	"hotty/craw"
	"sync"
)

func main() {
	var wg sync.WaitGroup
	wg.Add(4)
	ci := craw.NewCrawImg()
	for _, link := range craw.TaroPages {
		go func(l string) {
			ci.DownloadResources(l)
			wg.Done()
		}(link)
	}
	wg.Wait()

}
